
package com.friddle.Download.PageGet;
import org.apache.commons.lang3.tuple.MutablePair;
import org.apache.http.HttpHost;

import java.util.Map;

/**
 * Created by friddle on 12/30/14.
 * default will come fromm the Configuration if the Url is empty
 *
 */
public interface AntiStrategy {
    public Map<String,String> getHttpCookie();
    public Map<String,String> getHttpHeaders();
    public HttpHost getHttpProxys();
    public String getUserAgent();
    public int getSleepTime();
    public MutablePair<Boolean,String> isBlock(PageResult page);
    //make sure the behave must can be  finish.all will be lock
    //the return change Tradgeys  is or not success;
    public boolean changeTradegy(String errors);
}
